package xiaoqi.springboot.log.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
public class MyServiceImpl {

    private static final Logger LOGGER = LoggerFactory.getLogger(MyServiceImpl.class);

    public void doSth(String value) {
        LOGGER.trace("doSth needed more information - {}", value);
        LOGGER.debug("doSth needed to debug - {}", value);
        LOGGER.info("doSth took input - {}", value);
        LOGGER.warn("doSth took to warn - {}", value);
        LOGGER.error("doSth encountered an error with value - {}", value);
    }

}
